home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 February: Technology Seed / Mac Tech Seed Feb '97.toast / OpenDoc 1.2b2c1 / OpenDoc / Interfaces / IDL / LinkSrcB.idl < prev    next >
Encoding:
Text File  |  1997-02-13  |  2.3 KB  |  114 lines  |  [TEXT/MPS ]

  1. //#    Copyright:    © 1993 - 1995 by Apple Computer, Inc., all rights reserved.
  2.  
  3. #ifndef _LINKSRCB_
  4. #define _LINKSRCB_
  5.  
  6. #ifndef _PSTOBJ_
  7. #include "PstObj.idl"
  8. #endif
  9.  
  10. //==============================================================================
  11. // Classes defined in this interface
  12. //==============================================================================
  13.  
  14. interface  ODBaseLinkSource;
  15.  
  16. //==============================================================================
  17. // Classes used by this interface
  18. //==============================================================================
  19.  
  20. interface ODStorageUnit;
  21. interface ODPart;
  22. interface ODPartList;
  23. interface ODLink;
  24. interface ODDraft;
  25. interface ODFacet;
  26.  
  27.  
  28. //==============================================================================
  29. // ODBaseLinkSource
  30. //==============================================================================
  31.  
  32. interface ODBaseLinkSource :  ODPersistentObject
  33. {
  34.     ODBoolean Lock(in ODULong wait,
  35.                     out ODLinkKey key);
  36.     
  37.     void Unlock(in ODLinkKey key);
  38.     
  39.     void Clear(in ODUpdateID id, in ODLinkKey key);
  40.     
  41.     ODStorageUnit GetContentStorageUnit(in ODLinkKey key);
  42.     
  43.     void ContentUpdated(in ODUpdateID id, in ODLinkKey key);
  44.     
  45. #ifdef _PLATFORM_MACINTOSH_
  46.  
  47.     ODBoolean ShowLinkSourceInfo(
  48.                     in ODFacet facet,
  49.                     in ODUpdateID change,
  50.                     in ODBoolean changesAllowed,
  51.                     out ODLinkInfoResult infoResult);
  52.  
  53. #endif //# _PLATFORM_MACINTOSH_
  54.  
  55.     //#---------------------------------
  56.     //# Getters
  57.  
  58.     ODUpdateID GetUpdateID();
  59.     ODTime GetChangeTime();
  60.     ODBoolean IsAutoUpdate();
  61.  
  62.     //#---------------------------------
  63.     //# Setters
  64.  
  65.     void SetAutoUpdate(in ODBoolean automatic);
  66.     void SetSourcePart(in ODStorageUnit sourcePartSU);
  67.     
  68.  
  69. #ifdef __SOMIDL__
  70. #ifdef _PLATFORM_MACINTOSH_
  71.     implementation
  72.     {
  73.         majorversion = 1; minorversion = 0;
  74.  
  75.         functionprefix = ODBaseLinkSource;
  76.     
  77.         override:
  78.             somInit,
  79.             somUninit,
  80.             Externalize,
  81.             ReleaseAll,
  82.             CloneInto;
  83.             
  84.         releaseorder:
  85.             Lock,    
  86.             Unlock,
  87.             Clear,
  88.             GetContentStorageUnit,
  89.             ContentUpdated,
  90.             GetUpdateID,
  91.             SetAutoUpdate,
  92.             IsAutoUpdate,
  93.             SetSourcePart,
  94.             GetChangeTime,
  95.             ShowLinkSourceInfo,
  96.             reserved1,
  97.             reserved2,
  98.             reserved3,
  99.             reserved4,
  100.             reserved5,
  101.             reserved6,
  102.             reserved7,
  103.             reserved8,
  104.             reserved9,
  105.             reserved10,
  106.             reserved11;
  107.     
  108.     };
  109. #endif //# _PLATFORM_MACINTOSH_
  110. #endif //# __SOMIDL__
  111. };
  112.  
  113. #endif //# _LINKSRCB_
  114.